package com.ruoyi.system.wnjk.service.impl;

import java.util.List;

import com.ruoyi.system.wnjk.mapper.WnjkPhysicalExaminationReportMapper;
import com.ruoyi.system.wnjk.service.IWnjkPhysicalExaminationReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.wnjk.domain.po.PhysicalReport;

/**
 * 体检报告Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class WnjkPhysicalExaminationReportServiceImpl implements IWnjkPhysicalExaminationReportService
{
    @Autowired
    private WnjkPhysicalExaminationReportMapper wnjkPhysicalExaminationReportMapper;

    /**
     * 查询体检报告
     * 
     * @param reportId 体检报告主键
     * @return 体检报告
     */
    @Override
    public PhysicalReport selectWnjkPhysicalExaminationReportByReportId(Long reportId)
    {
        return wnjkPhysicalExaminationReportMapper.selectWnjkPhysicalExaminationReportByReportId(reportId);
    }

    /**
     * 查询体检报告列表
     * 
     * @param wnjkPhysicalExaminationReport 体检报告
     * @return 体检报告
     */
    @Override
    public List<PhysicalReport> selectWnjkPhysicalExaminationReportList(PhysicalReport wnjkPhysicalExaminationReport)
    {
        return wnjkPhysicalExaminationReportMapper.selectWnjkPhysicalExaminationReportList(wnjkPhysicalExaminationReport);
    }

    /**
     * 新增体检报告
     * 
     * @param wnjkPhysicalExaminationReport 体检报告
     * @return 结果
     */
    @Override
    public int insertWnjkPhysicalExaminationReport(PhysicalReport wnjkPhysicalExaminationReport)
    {
        return wnjkPhysicalExaminationReportMapper.insertWnjkPhysicalExaminationReport(wnjkPhysicalExaminationReport);
    }

    /**
     * 修改体检报告
     * 
     * @param wnjkPhysicalExaminationReport 体检报告
     * @return 结果
     */
    @Override
    public int updateWnjkPhysicalExaminationReport(PhysicalReport wnjkPhysicalExaminationReport)
    {
        return wnjkPhysicalExaminationReportMapper.updateWnjkPhysicalExaminationReport(wnjkPhysicalExaminationReport);
    }

    /**
     * 批量删除体检报告
     * 
     * @param reportIds 需要删除的体检报告主键
     * @return 结果
     */
    @Override
    public int deleteWnjkPhysicalExaminationReportByReportIds(Long[] reportIds)
    {
        return wnjkPhysicalExaminationReportMapper.deleteWnjkPhysicalExaminationReportByReportIds(reportIds);
    }

    /**
     * 删除体检报告信息
     * 
     * @param reportId 体检报告主键
     * @return 结果
     */
    @Override
    public int deleteWnjkPhysicalExaminationReportByReportId(Long reportId)
    {
        return wnjkPhysicalExaminationReportMapper.deleteWnjkPhysicalExaminationReportByReportId(reportId);
    }
}
